home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / pong < prev    next >
Encoding:
Text File  |  2001-03-21  |  753 b   |  24 lines

  1. Synopsis:
  2.    on [<modes>]pong [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client receives a protocol PONG
  6.    message.  Under normal circumstances, the sender will be a server.
  7.    However, clients are also allowed to send PONG messages to each other.
  8.    Since there is never any reason for a client to send a PONG to another
  9.    client, this hook can be useful for blocking PONG floods.
  10.  
  11. Parameters:
  12.    $0    nickname sending the PONG
  13.    $1-   argument to PONG (usually the same as $0, but not necessarily)
  14.  
  15. Examples:
  16.    To filter PONG messages from other clients:
  17.       on ^pong "*" {
  18.          if ( rmatch($0 %.%) ) echo *** Received protocol PONG from $0: $1-
  19.       }
  20.  
  21. See Also:
  22.    quote(5)
  23.  
  24.